package com.aeye.mbr.upms.rpc.mapper;


import com.aeye.mbr.upms.dao.model.UpmsPermission;
import com.aeye.mbr.upms.dao.model.UpmsRole;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

/**
 * 用户VOMapper
 * Created by shuzheng on 2017/01/07.
 */
public interface UpmsApiMapper {

	// 根据用户id获取所拥有的权限
	@ResultType(UpmsPermission.class)
	@SelectProvider(type = com.aeye.mbr.upms.rpc.sqlprovide.UpmsApiSqlProvide.class,method = "selectUpmsPermissionByUpmsUserId")
	List<UpmsPermission> selectUpmsPermissionByUpmsUserId(Map<String, Object> params);




	@ResultType(UpmsRole.class)
	@SelectProvider(type = com.aeye.mbr.upms.rpc.sqlprovide.UpmsApiSqlProvide.class,method = "selectUpmsRoleByUpmsUserId")
	// 根据用户id获取所属的角色
	List<UpmsRole> selectUpmsRoleByUpmsUserId(Map<String, Object> params);
	
}